#!/usr/bin/env python
# -*- coding: utf-8 -*-


try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

"""from setuptools.command.test import test as TestCommand

class Tox(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True
    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)
"""

with open('README.rst') as readme_file:
    readme = readme_file.read()

with open('HISTORY.rst') as history_file:
    history = history_file.read().replace('.. :changelog:', '')

requirements = [
    # TODO: put package requirements here
]

test_requirements = [
    # TODO: put package test requirements here
    'pytest',
    'tox'
]

setup(
    name='crunch_app',
    version='0.1.0',
    description="A URL Shortener App.",
    long_description=readme + '\n\n' + history,
    author="Jyoti Sheoran",
    author_email='sheoranjs24@gmail.com',
    url='https://sheoranjs24@bitbucket.org/sheoranjs24/crunch-app',
    packages=[
        'crunch_app',
    ],
    package_dir={'crunch_app':
                 'crunch_app'},
    include_package_data=True,
    install_requires=requirements,
    #cmdclass={'test': Tox},
    license='MIT',
    zip_safe=False,
    keywords='crunch_app',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    test_suite='tests',
    tests_require=test_requirements
)
